//
//  DataRequest.h
//  ZYYD
//
//  Created by yuzhou on 12-8-6.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASINetworkQueue.h"
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"

@interface DataRequest : NSObject<ASIHTTPRequestDelegate,UIAlertViewDelegate>
{
    ASINetworkQueue *queue;
    UIAlertView *networkAlertView;
}
+ (id)sharedRequest;//返回单例对象
- (void)getAd;
- (void)getFeatured;
- (void)getBookInfoByID:(NSString *)itemid;
- (void)getBookContentByID:(NSString *)itemid;
- (void)getBookCommentByID:(NSString *)itemid;
- (void)getCategory;
- (void)getChannelByID:(NSString *)class_id;

- (void)loginWithUsername:(NSString *)username password:(NSString *)password;
- (void)registerWithUsername:(NSString *)username password:(NSString *)password email:(NSString *)email;
- (void)modifyPasswordWithOriginPassword:(NSString *)originPassowrd newPassword:(NSString *)newPassword;

- (void)collectBook:(NSString *)userID username:(NSString *)username bookID:(NSString *)bookID;
- (void)getUserActions;
- (void)getCollected;
- (void)getCommented;
- (void)getShared;
- (void)getKeywords;
- (void)getBookWithKeywords:(NSString *)keywords;
- (void)getArtists;
- (void)getArtistWorkWithAritist:(NSString *)artistID;
- (void)commentBookWithID:(NSString *)itemid comment:(NSString *)comment rate:(int)rate;
- (void)getAppUpdateInfo;
@property (nonatomic,retain) NSArray *categoryArray;
@end
